package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 应用队列表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_application_queue")
public class ApplicationQueue implements Serializable {

    /**
     * id
     */
    @TableId(value = "queue_id", type = IdType.AUTO)
    private Long queueId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 队列标题
     */
    @TableField(value = "queue_title")
    private String queueTitle;

    /**
     * 队列副标题
     */
    @TableField(value = "queue_subtitle")
    private String queueSubtitle;

    /**
     * 队列类型（1-订单导入，2-订单导出，3-套打模板）
     */
    @TableField(value = "queue_type")
    private Integer queueType;

    /**
     * 队列状态（0-准备中，1-已完成，2-失败）
     */
    @TableField(value = "queue_status")
    private Integer queueStatus;

    /**
     * 队列文件
     */
    @TableField(value = "queue_file_id")
    private Long queueFileId;

    /**
     * 队列内容
     */
    @TableField(value = "queue_content")
    private String queueContent;

    /**
     * 已读（0-未读，1-已读）
     */
    @TableField(value = "read_status")
    private Integer readStatus;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String COL_QUEUE_ID = "queue_id";

    public static final String COL_ENTERPRISE_ID = "enterprise_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_QUEUE_TITLE = "queue_title";

    public static final String COL_QUEUE_SUBTITLE = "queue_subtitle";

    public static final String COL_QUEUE_TYPE = "queue_type";

    public static final String COL_QUEUE_STATUS = "queue_status";

    public static final String COL_QUEUE_FILE_ID = "queue_file_id";

    public static final String COL_QUEUE_CONTENT = "queue_content";

    public static final String COL_READ_STATUS = "read_status";

    public static final String COL_REMARK = "remark";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_MODIFIER_ID = "modifier_id";

    public static final String COL_MODIFIER_NAME = "modifier_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}